#include "Thread.h"

void* Thread:: start_routine(void *arg)
{
	Thread* pthread = (Thread*) arg;
	pthread->run();
	//pthread_exit();
	return((void*)0);
}


void* Thread::join()
{
	void* up;
	pthread_join(t,&up);
	return up;
}


int Thread::start()
{
	pthread_create(&t, NULL, start_routine, this);
	return 0;
}



